<template>
	<view class="aflex">
		<view class="err-img" v-show="errType === 1">			
		</view>
		<view class="err-text">
		{{errType === 1 ? errText : ''}}
        </view>
	</view>
</template>
 
<script>
	export default {
		name: "err-box",
        props: {
        	errType: {
        		type: Number,
        		default: 1
        	},
            errText:{
				type: String,
				default: '没有找到哦:)'
			}
        },
		data() {
			return {}
		}
	}
</script>
 
<style>
	.err-img {
		height:230upx;
		width: 100%;
		margin:40upx 0;
		background-image: url(../static/img/err.png);
		background-repeat: no-repeat;
		background-size:100% 100%;
	} 
	.err-text {
		font-size: 28upx;
		color: #999999;
        text-align: center;
        margin-bottom: 40upx;
	}
</style>
